﻿using System;
using System.Collections.Generic;
using WebApplication1.Core.Domain.Entities;


namespace WebApplication1.Core.DataTransferObject {

    public class XiangxixinxiResponse {
        #region Property
        public int Xiangmuid { get; set; }
        public string XiangMuMingCheng { get; set; } = null!;
        public string? LiXiangDaiMa { get; set; }
        public string? KeYanBianZhiDanWei { get; set; }
        public int? KeYanFei { get; set; }
        public string? KeYanPingGuDanWei { get; set; }
        public int? KeYanPingGuFei { get; set; }
        public string? XiangMuBianHao { get; set; }
        public string? KeYanPiFuWenHao { get; set; }
        public string? ChuShePiFuWenHao { get; set; }
        public string? SheJiDanWei { get; set; }
        public int? SheJiFei { get; set; }
        public string? CeHuiDanWei { get; set; }
        public int? CeHuiFei { get; set; }
        public string? ZhaoBiaoDaiLi { get; set; }
        public double? ZhaoBiaoKongZhiJia { get; set; }
        public string? ZhongBiaoDanWei { get; set; }
        public string? XiangMuJingLi { get; set; }
        public string? ShiGongFuZeRen { get; set; }
        public double? ZhongBiaoJia { get; set; }
        public DateOnly? KaiGongShiJian { get; set; }
        public DateOnly? JunGongShiJian { get; set; }
        public DateOnly? YanShouShiJian { get; set; }
        public int? YiZhiFuGongChengKuan { get; set; }
        public DateOnly? JieSuanShenQingShiJian { get; set; }
        public double? JieSuanBaoJia { get; set; }
        public string? JieSuanJia { get; set; }
        public string? JianLiDanWei { get; set; }
        public int? JianLiFei { get; set; }
        public int? YiZhiFuJianLiFei { get; set; }
        #endregion
    }

    public class XiangxixinxiSimpleResponse {
        public int Xiangmuid { get; set; }
        public string XiangMuMingCheng { get; set; } = null!;
        public string? ZhongBiaoDanWei { get; set; }
        public string? JianLiDanWei { get; set; }
    }

    public static class XiangxixinxiExtension {
        public static XiangxixinxiResponse ToXiangxixinxiResponse(this Xiangxixinxi x) {
            return new XiangxixinxiResponse() {
                Xiangmuid = x.Xiangmuid,
                XiangMuMingCheng = x.XiangMuMingCheng,
                LiXiangDaiMa = x.LiXiangDaiMa,
                KeYanBianZhiDanWei = x.KeYanBianZhiDanWei,
                KeYanFei = x.KeYanFei,
                KeYanPingGuDanWei = x.KeYanPingGuDanWei,
                KeYanPingGuFei = x.KeYanPingGuFei,
                XiangMuBianHao = x.XiangMuBianHao,
                KeYanPiFuWenHao = x.KeYanPiFuWenHao,
                ChuShePiFuWenHao = x.ChuShePiFuWenHao,
                SheJiDanWei = x.SheJiDanWei,
                SheJiFei = x.SheJiFei,
                CeHuiDanWei = x.CeHuiDanWei,
                CeHuiFei = x.CeHuiFei,
                ZhaoBiaoDaiLi = x.ZhaoBiaoDaiLi,
                ZhaoBiaoKongZhiJia = x.ZhaoBiaoKongZhiJia,
                ZhongBiaoDanWei = x.ZhongBiaoDanWei,
                XiangMuJingLi = x.XiangMuJingLi,
                ShiGongFuZeRen = x.ShiGongFuZeRen,
                ZhongBiaoJia = x.ZhongBiaoJia,
                KaiGongShiJian = x.KaiGongShiJian,
                JunGongShiJian = x.JunGongShiJian,
                YanShouShiJian = x.YanShouShiJian,
                YiZhiFuGongChengKuan = x.YiZhiFuGongChengKuan,
                JieSuanShenQingShiJian = x.JieSuanShenQingShiJian,
                JieSuanBaoJia = x.JieSuanBaoJia,
                JieSuanJia = x.JieSuanJia,
                JianLiDanWei = x.JianLiDanWei,
                JianLiFei = x.JianLiFei,
                YiZhiFuJianLiFei = x.YiZhiFuJianLiFei
            };
        }
    }
}
